<!-- 头部 -->
<include file="Public:header" />

        <!-- header-section end-->
        <div class="index-wrapper" style="padding-bottom: 0px;">
            <div style="height: 40px;padding-top: 5px;">
                <img src="__PUBLIC__/home/images/x.png" style="width: 30px;margin-left: 10px;">
                <span style="font-size: 16px;padding-left: 5px;">公益项目</span>
                <form action="">
                <input type="text" placeholder="查询公益项目" name="gyxm" style="border-radius: 10px;border: 0px;display: inline-block;float: right;padding: 5px;margin-top: -25px;">
                </form>
            </div>

            <div class="product-list" style="background: #fff;padding: 10px;margin: 0px;">
            <?php foreach ($xms as $v) { ?>
                <a href="{:U('index/xm',array('id'=>$v['id']))}" style="width: 100%;height: 120px;">
                    <div style="float: left;border: 1px solid #FAFAFA;"><img src="__ROOT__{$v.xm_img}" alt="" style="width: 136px;height: 100px;"></div>
                    <div style="height: 121px;padding-left: 140px;border-bottom: 1px solid #dbd0d0;position: relative;">
                        <p style="font-size: 15px;width: 70%;">{$v.xm_name}</p>
                        <span style="position: absolute;color: #fff;top: 1px;right: 0px;font-size: 8px;background: #FF8711;padding: 1px 3px;border-radius: 2px;">进行中</span>
                        <div style="font-size: 14px;padding: 5px 0;color: #A4A4A4;">{$v.xm_content|htmlspecialchars_decode|strip_tags|mb_substr=0,20,'utf-8'}...</div>
                        <p style="font-size: 14px;color: #A4A4A4;">共<span style="color: #FF8814;">{$v.xm_num}</span>份爱心</p>
                    </div>
                </a>
            <?php } ?>
            </div>
            <div class="tabbar-section" style="text-align: center;font-size: 12px;padding-top: 10px;background: #fff;padding-bottom: 10px;">
                <ul id="J-tabbar" class="ui-flex">
                    <li class="cell">
                        <a class="tabbar-nav" href="{:U('index/index')}">
                            <img src="__PUBLIC__/home/images/sy1.png" alt=""><p style="font-size: 15px;">首页</p>
                        </a>
                    </li>
                    <li class="cell J-other">
                    <?php if (!empty(session('name'))) { ?>
                        <a class="tabbar-nav" href="{:U('setup/index')}">
                            <img src="__PUBLIC__/home/images/fq2.png" alt=""><p style="font-size: 15px;">创建</p>
                        </a>
                    <?php } else { ?>
                        <a class="tabbar-nav" href="{:U('user/login')}">
                            <img src="__PUBLIC__/home/images/fq2.png" alt=""><p style="font-size: 15px;">创建</p>
                        </a>
                    <?php } ?>
                    </li>
                    <li class="cell J-other">
                        <a class="tabbar-nav" href="{:U('index/xms')}">
                            <img src="__PUBLIC__/home/images/xxm3.png" alt=""><p style="color:#FF9027;font-size: 15px;">项目</p>
                        </a>
                    </li>
                    <li class="cell J-other">
                    <?php if (!empty(session('name'))) { ?>
                        <a class="tabbar-nav" href="{:U('user/yhzx')}">
                            <img src="__PUBLIC__/home/images/wd4.png" alt=""><p style="font-size: 15px;">我的</p>
                        </a>
                    <?php } else { ?>
                        <a class="tabbar-nav" href="{:U('user/login')}">
                            <img src="__PUBLIC__/home/images/wd4.png" alt=""><p style="font-size: 15px;">我的</p>
                        </a>
                    <?php } ?>
                    </li>
                </ul>
            </div>
        </div>
        <a href="http://www.miitbeian.gov.cn" target="_bank"></a>
    </body>
</html>